﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DbTaglio.SvcLayer.DbTaglioService;

namespace DbTaglio.SvcLayer
{
    public class MetSet : WcfBase
    {
          public MetSet(string pUserName, string pPwd, bool pImpersonate = true):
            base(pUserName ,pPwd ,pImpersonate)       
        {

        }

        //salva nel DB
          public RetData<ResultModel> updateDichiarazioni(Dichiarazione pItem, Boolean pDelete)
        {
            return Execute2<Dichiarazione, Boolean, ResultModel>(Proxy.UpdateDichiarazione, pItem, pDelete);
            
        }//fm
                

        // Concerie
        public RetData<ResultModel> updateConcerie(Conceria pItem, bool pDelete)
        {            
            return Execute2<Conceria,Boolean, ResultModel>(Proxy.UpdateConceria, pItem, pDelete);
        }//fM


        // Macchine
        public RetData<ResultModel> updateMacchina(Macchina pItem, bool pDelete)
        {
            return Execute2<Macchina,Boolean, ResultModel>(Proxy.UpdateMacchinaFornitore, pItem, pDelete);
        }//fM


        // Operatore
        public RetData<ResultModel> updateOperatore(Operatore pItem, bool pDelete)
        {
            return Execute2<Operatore,Boolean,ResultModel>(Proxy.UpdateOperatore, pItem,pDelete);
        }//fM






    }//fM
}
